/**
 * 由 CoCo 源代码计划解包器解包
 *
 * 模块 ID：2586
 */

"use strict"

import * as /* [auto-meaningful-name] */React from "react"
import /* [auto-meaningful-name] */_React from "react"
import "../../../shared/1531/2584/710/index"
import * as /* [auto-meaningful-name] */$$_$$_$$_shared_1531_2584_75_index from "../../../shared/1531/2584/75/index"
import /* [auto-meaningful-name] */_$$_$$_$$_shared_1531_2584_75_index from "../../../shared/1531/2584/75/index"
import * as /* [auto-meaningful-name] */RegeneratorRuntime from "regenerator-runtime"
import /* [auto-meaningful-name] */_RegeneratorRuntime from "regenerator-runtime"
import * as /* [auto-meaningful-name] */$$_$$_$$_shared_1531_2584_6 from "../../../shared/1531/2584/6"
import * as /* [auto-meaningful-name] */$$_$$_$$_shared_1531_2584_7 from "../../../shared/1531/2584/7"
import * as /* [auto-meaningful-name] */$$_$$_$$_shared_1531_2584_10_index from "../../../shared/1531/2584/10/index"
import * as /* [auto-meaningful-name] */$_511_index from "./511/index"
import * as /* [auto-meaningful-name] */$$_$$_$$_shared_1531_2584_177 from "../../../shared/1531/2584/177"
var p = _React.memo(function () {
  var t = React.useState()
  var e = $$_$$_$$_shared_1531_2584_10_index.a(t, 2)
  var n = e[0]
  var o = e[1]
  function a() {
    return (a = $$_$$_$$_shared_1531_2584_7.a(_RegeneratorRuntime.mark(function t() {
      var e
      var n
      var r
      return _RegeneratorRuntime.wrap(function (t) {
        for (;;) {
          switch (t.prev = t.next) {
            case 0:
              if (e = new URLSearchParams(window.location.hash.replace("#", "?")), n = e.get("id")) {
                t.next = 4
                break
              }
              return t.abrupt("return")
            case 4:
              t.t0 = JSON
              t.next = 7
              return $$_$$_$$_shared_1531_2584_177.h(n)
            case 7:
              t.t1 = t.sent
              r = t.t0.parse.call(t.t0, t.t1)
              o($$_$$_$$_shared_1531_2584_6.a($$_$$_$$_shared_1531_2584_6.a({}, r), {}, {
                shouldOpenEmulator: true
              }))
            case 10:
            case "end":
              return t.stop()
          }
        }
      }, t)
    }))).apply(this, arguments)
  }
  React.useEffect(function () {
    !function () {
      a.apply(this, arguments)
    }()
  }, [])
  return n ? _React.createElement($_511_index.a, n) : _React.createElement(_React.Fragment, null)
})
_$$_$$_$$_shared_1531_2584_75_index.render(_React.createElement(p, null), document.getElementById("root"))
